package com.hy.lightning.ds.redis;

import redis.clients.jedis.JedisPoolConfig;

public class RedisConf {

	private String key = "local"; // dataSource key值

	private String host = "localhost";// ip

	private int port = 6379; // 端口

	private String password = "123456"; // 连接密码

	private int timeout = 15000;// 超时时间

	private int index = 0;// 数据库序号

	private JedisPoolConfig jedisPoolConfig = new JedisPoolConfig();// jedis连接池配置

	public RedisConf(String key, String host, String password) {
		super();
		this.key = key;
		this.host = host;
		this.password = password;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public JedisPoolConfig getJedisPoolConfig() {
		return jedisPoolConfig;
	}

	public void setJedisPoolConfig(JedisPoolConfig jedisPoolConfig) {
		this.jedisPoolConfig = jedisPoolConfig;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getTimeout() {
		return timeout;
	}

	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}
}
